const { VITE_HIDE_HOME } = import.meta.env;
const Layout = () => import("@/layout/index.vue");

export default [
  {
    path: "/cms",
    redirect: "/cms/video",
    meta: {
      icon: "informationLine",
      title: "内容管理",
      showLink: true,
      rank: 9
    },
    children: [
      {
        path: "/video",
        name: "cmsVideo",
        component: () => import("@/views/cms/video/index.vue"),
        meta: {
          title: "视频/图片/文案 "
        }
      },
      {
        path: "/classify",
        name: "cmsClassify",
        component: () => import("@/views/cms/classify/index.vue"),
        meta: {
          title: "分类"
        }
      },
      {
        path: "/video-status",
        name: "cmsVideoStatus",
        component: () => import("@/views/cms/videoStatus/index.vue"),
        meta: {
          title: "视频状态"
        }
      },
      {
        path: "/task",
        name: "cmsTask",
        component: () => import("@/views/cms/task/index.vue"),
        meta: {
          title: "任务"
        }
      },
      {
        path: "/tag",
        name: "cmsTag",
        component: () => import("@/views/cms/tag/index.vue"),
        meta: {
          title: "标签"
        }
      }
    ]
  }
] as Array<RouteConfigsTable>;
